<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台管理系统网站文章管理</title>
<link href="/TP001/Public/css/base.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="/TP001/Public/css/common.css" type="text/css" media="screen" />
<link href="/TP001/Public/css/icons.css" rel="stylesheet" type="text/css">

</head>
<body>
<div class="common_title">
<span>文章管理</span>
</div>
<div class="divContent">



<div class="formTable">
  <div class="formAdd"> <a class="butbase" href="/TP001/index.php/Admin/Article/add"><span class="icon-add">添加</span></a> </div>
  <table width="99%" border="0" cellpadding="0" cellspacing="0" class="tableClass">
    <tbody>
      <tr class="alt">
        <th width="3%" nowrap="nowrap"> 序号 </th>
        <th width="100" nowrap="nowrap">文章标题</th>
        <th width="100" nowrap="nowrap">所属栏目</th>
        <th width="100" nowrap="nowrap">发布时间</th>
        <th width="240" nowrap="nowrap">操作</th>
      </tr>

      <?php if(is_array($show)): $i = 0; $__LIST__ = $show;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>

          <td align="center" nowrap="nowrap"><?php echo ($v["id"]); ?> </td>
          <td align="center"><a href="/TP001/index.php/Admin/Article/detail/id/<?php echo ($v["id"]); ?>"><?php echo ($v["title"]); ?></a></td>
          <td align="center">
         <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$x): $mod = ($i % 2 );++$i; if(($x["id"]) == $v['typeid']): echo ($x["artype_name"]); endif; endforeach; endif; else: echo "" ;endif; ?>
		</td>
          <td align="center">
         <?php echo ($v["creattime"]); ?>
        </td>
		  <td align="center" nowrap="nowrap"> 
          		<a class="butbase"  href="/TP001/index.php/Admin/Article/update/id/<?php echo ($v["id"]); ?>"><span class="icon-edit"> 修改</span></a>　　
          		<a  class="butbase" href="/TP001/index.php/Admin/Article/delete/id/<?php echo ($v["id"]); ?>" onClick="return confirm('确定删除?');">
                <span class="icon-remove">删除</span></a>
          </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  
    </tbody>
  </table>
</div>
</div>

</body>
</html>